#pragma once
#include "dllmain.h"
#include "BoostPimpl.h"

#include <string>

BEGIN_NAMESPACE_CPPX

class _CPPX_API fuTinyXpath
{
    DECLARE_PIMPL_CLASS()

public:
    fuTinyXpath(void);
    ~fuTinyXpath(void);

    bool LoadXmlFile(cstr file);
    bool LoadXmlString(cstr xmlstr);
    bool LoadXmlString(std::string xmlstr){ return LoadXmlString(xmlstr.c_str()); }
	std::string ToString(void) const;

    int xpath_intger(const char * cp_xpath_expr);
    std::string xpath_string(const char * cp_xpath_expr);
};

END_NAMESPACE_CPPX
